package com.coolwalker.common.utils;

import com.coolwalker.common.domain.DataTreeEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
class Category implements DataTreeEntity<Category> {

    /**
     * 部门ID
     */
    private Long id;

    /**
     * 父级的ID
     */
    private Long parentId;

    /**
     * 部门名称
     */
    private String name;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 子节点
     */
    private List<Category> subList;
}
